<{include 'header.tpl'}>

<script language="JavaScript1.2">
    var cssdefinition='<style>\n.menuitems{\nborder:2.5px solid #FFF2BF;\n}\n\n.menuitems a{\ntext-decoration:none;\ncolor:black;\n}\n<\/style>'
    //No need to edit beyond here
    if (document.all||document.getElementById)
        document.write(cssdefinition)
    function over_effect(e,state, bgcolor){
        if (document.all)
            source4=event.srcElement
        else if (document.getElementById)
            source4=e.target
        if (source4.className=="menuitems"){
            source4.style.borderStyle=state
            source4.style.backgroundColor=bgcolor
        }//欢迎来到站长特效网，我们的网址是www.zzjs.net，很好记，zz站长，js就是js特效，本站收集大量高质量js代码，还有许多广告代码下载。
        else{
            while(source4.tagName!="DIV"){
                source4=document.getElementById? source4.parentNode : source4.parentElement
                if (source4.className=="menuitems"){
                    source4.style.borderStyle=state
                    source4.style.backgroundColor=bgcolor
                }
            }
        }
    }//欢迎来到站长特效网，我们的网址是www.zzjs.net，很好记，zz站长，js就是js特效，本站收集大量高质量js代码，还有许多广告代码下载。
</script>
<pr>
    <div>
        <img src="__STATIC_DIR__/image/logo7.jpg" alt="wenqi's blog">
        <{if(isset($time))}>
        <{$time}>
        <{/if}>
    </div>
<table border="1" align="center" width="90%">
    <tr bgcolor="#cccccc">
        <th>用户名</th><th  width="60%">账号资产</th><th  width="20%">充值提现</th><th  width="15%">买入卖出</th><th>转入转出</th>
    </tr>
    <tr>
    <{ loop $list $value }>
       <td bgColor="#808080"> <{$value}></td>
    <{/loop}>
    </tr>
</table>
    <div style="background-color:#FFF2BF;width:80%;height:23px;padding-top:5px" onMouseover="over_effect(event,'outset','#FFE271')" onMouseout="over_effect(event,'solid','#FFF2BF')" onMousedown="over_effect(event,'inset')" onMouseup="over_effect(event,'outset')">
        <font face="Arial" size="2">
            <span class="menuitems" data="index.php?c=api&a=paylist">充值查询</span>
            <span class="menuitems" data="aaa">提现查询</span>
            <span class="menuitems" data="aaa">买入记录</span>
            <span class="menuitems" data="aaa">卖出记录</span>
            <span class="menuitems" data="aaa">转入查询</span>
            <span class="menuitems" data="aaa">转出查询</span>
        </font>
    </div>
    <form style="display: none;"  method="post">
        <table border="1" align="center" width="500">
                <input type="hidden" name="username" value="<{$username}>">
                <p>开始时间<input type="text" name="starttime" id="starttime"/>
                    结束时间<input type="text" name="endtime" id="endtime"/>
                    <input id = "search" type="button" value="查询" /></p>
        </table>
    </form>
    <script>
        $.datetimepicker.setLocale('ch');
        $('#starttime').datetimepicker();
        $('#endtime').datetimepicker();
        $(".menuitems").click(function(){
            var a=$(this).index();
            var href = $(this).attr("data");
            $("form").css('display','block');
            $("form").attr("action",href);
            alert(href);
//            location.href=href;
        });
        $("#search").click(function(){
            var data = $("form").serialize();
            var url = $("form").attr("action");
            $.post(url,data,function(e){
                var i = $.parseJSON(e);
                $("form").append(i);
            });
        });
    </script>
<{include 'footer.tpl'}>